<script>
import { h } from 'vue';
export default {
    render() {
      return h("div", null, [
          h("h2", null, "hello world"),
          //接受传来插槽
        //   this.$slots.default ? this.$slots.default() : h("span", null, "app没有传插槽就默认显示我")
            //传值变成作用域插槽
          this.$slots.default ? this.$slots.default({name: "yzh", age: 18}) : h("span", null, "app没有传插槽就默认显示我")
      ])
    },
}
</script>
<style>
</style>
